﻿<!DOCTYPE html>
<html lang="en" window-frame="solid" window-icon="./view/icon/server-favicon.ico"></html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>更改密码</title>
    <link rel="stylesheet" type="text/css" href="./view/css/index.css">
    <style>
        #box {
            width: 645px;
            height: 445px;
        }
    </style>
</head>
<body role="window-caption">
    <div id="box">
        <div class="addtaskmodetop skinbg" style="background-image: url(./view/img/boxbg.png);">
            <div class="title fl" >
                <img src="./view/img/logo_st.png" alt="" class="fl">
                更改密码
            </div>
            <button id="closewin" class="closewinicon topiconBg addmodeclosebtn"  style="background-image: url(./view/img/topicon.png);"></button>
        </div>
        <div class="addmode addserver layui-anim layui-anim-scale">
            <div class="layui-form" action="" style="margin-top:20px">
                <div class="layui-form-item">
                    <label class="layui-form-label" >更改密码：</label>
                    <div class="layui-input-block">
                        <input type="password" name="setpwd" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label" >确认密码：</label>
                    <div class="layui-input-block">
                        <input type="password" name="affirmpwd" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn amend" lay-submit lay-filter="formServer">修改</button>
                    </div>
                </div>
            </div>
        </div>
        <!-- 提示  -->
        <div id="messtip">
            <i id="messtipicon" class="successicon"></i>
            <span class="messtipword"> 
                <span class="reminderhandle"></span>！
                <span class="errorhandle"></span> 
            </span>
        </div>
        <!-- 提示 -->
    </div>
    <script type="text/tiscript" src="./view/tiscript/index.tis"></script>
    <script type="text/tiscript" src="./view/tiscript/public.tis"></script>
    <script type="text/tiscript">
        moveToScreenCenter(647,447);
        $(#messtip).style["display"] = "none"
        $(.amend).on("click",function(){
            var setpwd = $(input[name=setpwd]).value;
            var affirmpwd = $(input[name=affirmpwd]).value;
            if(setpwd && affirmpwd){
                if(setpwd == affirmpwd){

                }else{
                    $(#messtip).style["display"] = "block"
                    $(#messtipicon).attributes["class"] = "defeaticon"
                    $(.reminderhandle).text = "密码不相同"
                    $(.errorhandle).text = ""
                }
            }else{
                $(#messtip).style["display"] = "block"
                $(#messtipicon).attributes["class"] = "defeaticon"
                $(.reminderhandle).text = "请输入修改密码"
                $(.errorhandle).text = ""
            }
            
           
        
            
       
        });
        
</script>
</body>
</html>